package com.gagakuai.bpm.domian.dto.camunda;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/*
 * @program: mss_server
 * @description: 工作任务操作Dto
 * @author: houhong
 * @create: 2022-03-18 13:50
 */
@Data
public class  WorkTaskOperDto {

    /*
     * 任务Id
     */
    private String taskId;

    /*
     * 流程实列Id
     */
    private String procInstId;


    /*
     * 流程定义Id
     */
    private String procDefId;

    /*
     * 流程定义名字
     */
    private String procDefName;

    /*
     * 流程执行Id
     */
    private String executionId;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date followUpDate;

    private String parentTaskId;

    private Boolean suspensionState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    private String tenantId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


    private String first;

    /*
     * 流程定义中文名
     */
    private String processName;
    /*
     * 流程定英文名
     */
    private String processEnName;

    /*
     * 具体业务key
     */
    private String businessKey;

    /*
     * 当前环节
     */
    private String curTaskName;

    /*
     *
     * 发起人
     */
    private String startUserId;


    /*
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dueDate;


    /*
     * 剩下时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leftDate;

    /*
     * 受委托人
     */
    private String owner;

    /*
     * 办理人
     */
    private String assignee;

    /*
     * 委托状态
     */
    private String delegation;

    /*
     * 任务描述: 包括退回原因
     */
    private String description;

    /*
     * 优先级
     */
    private int priority;


    /*
     * 任务定义key
     */
    private String taskDefKey;


}